today date python

33

# Python program to demonstrate datetime object
# import datetime class
from datetime import datetime

# Calling now() function
today = datetime.now()

print("Current date and time is", today)

Comments

Submit
0 Comments